import request from '@/utils/request'

// 查询项目节点
export function getNexNode(query) {
  return request({
    url: `/fmea/workflow/approve/getNexNode`,
    method: 'get',
    params: query
  })
}

// 发起审批
export function initiateApproval(data) {
  return request({
    url: `/fmea/workflow/approve/initiateApproval`,
    method: 'post',
    data: data
  })
}

// 查询代办
export function upcoming(data) {
  return request({
    url: `/fmea/workflow/approve/upcoming`,
    method: 'get',
    data
  })
}

// 处理审批
export function processApproval(data) {
  return request({
    url: `/fmea/workflow/approve/processApproval`,
    method: 'post',
    data: data
  })
}

